<?php
class detailAction extends frontAction{
    public function execute(){
        $id = $this->getGetParam("id",0);
		rare_go404If($id==0);
        $dao = new DaoVideo();
        $video = $dao->getOne("id = '".$id."'");

		$currentID = service_menu::getCurrent(service_type::VIDEO);
		$cache = new Cache_request();
		$cache->set("currentID",$currentID);

		$this->assign("title",service_menu::getNameById($currentID));
		$this->assign("currentMenuID",$currentID);
        $this->assign("video",$video);
    } 
}
?>
